import { Actor, Action } from "iflux2";
import { LangingPageContent } from "../constant/action-type";

export default class OrderActor extends Actor {
  defaultState() {
    return {
      domainList: [],
      pageInfo: {}
    };
  }

  @Action(LangingPageContent.LANDING_PAGE)
  setDomain(state, domain) {
    return state.set("domainList", domain);
  }

  @Action(LangingPageContent.SET_PAGE_INFO)
  setPageInfo(state, pageInfo) {
    return state.set("pageInfo", pageInfo);
  }
}
